package com.aiju.cash.widgit;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * @author: 佐为
 * @date: 2017-01-04 12:03
 * @version: V1.0
 * @Description: 描述
 */
public class InScrollGridView extends GridView {

    public InScrollGridView(Context context) {
        super(context);
    }

    public InScrollGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}